package com.passionfruit.module.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author weirdor
 * @since 2017-11-06
 */
@TableName("blog_article_tag_link")
public class BlogArticleTagLink extends Model<BlogArticleTagLink> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 文章ID
     */
	@TableField("article_id")
	private Integer articleId;
    /**
     * 标签ID
     */
	@TableField("tag_id")
	private Integer tagId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getArticleId() {
		return articleId;
	}

	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}

	public Integer getTagId() {
		return tagId;
	}

	public void setTagId(Integer tagId) {
		this.tagId = tagId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "BlogArticleTagLink{" +
			"id=" + id +
			", articleId=" + articleId +
			", tagId=" + tagId +
			"}";
	}
}
